package com.example.demo.exception;

/**
 * @author hankChan
 *         2018/1/18 0018.
 */
public class UnauthorizedException extends RuntimeException {

    private static final long serialVersionUID = -8884158048895257089L;

    private String state;

    private String code;

    private String msg;

    private String requestId;

    public UnauthorizedException(String state, String code, String msg, String requestId) {
        this.state = state;
        this.code = code;
        this.msg = msg;
        this.requestId = requestId;
    }

    public String getState() {
        return state;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getRequestId() {
        return requestId;
    }
}
